//
//  QJCategoryVCRightCell.m
//  QuanJieShopProject
//
//  Created by apple on 2018/2/8.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "QJCategoryVCRightCell.h"

@implementation QJCategoryVCRightCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)cellDefaultUIPrepare{
    self.cellImageHeight.constant = (UISCREEN_WIDTH - 125 * [UIScreen mainScreen].bounds.size.width / 375.0) / 2.0 * 0.75;
}
- (void)cellUpdateWithModel:(CategoryLeftModel *)model{
    if (model) {
        
        [self.cellImage sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",NET_BASEURL,model.image_url]] placeholderImage:[UIImage imageNamed:@"noImage"]];
        self.cellTitle.text = [NSString stringWithoutNilFormart:model.name];
    }
    
}
@end
